import 'package:flutter_test/flutter_test.dart';
import 'package:kq_flutter_tv_widgets/kq_flutter_tv_widgets.dart';
import 'package:kq_flutter_tv_widgets/kq_flutter_tv_widgets_platform_interface.dart';
import 'package:kq_flutter_tv_widgets/kq_flutter_tv_widgets_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockKqFlutterTvWidgetsPlatform
    with MockPlatformInterfaceMixin
    implements KqFlutterTvWidgetsPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final KqFlutterTvWidgetsPlatform initialPlatform = KqFlutterTvWidgetsPlatform.instance;

  test('$MethodChannelKqFlutterTvWidgets is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelKqFlutterTvWidgets>());
  });

  test('getPlatformVersion', () async {
    KqFlutterTvWidgets kqFlutterTvWidgetsPlugin = KqFlutterTvWidgets();
    MockKqFlutterTvWidgetsPlatform fakePlatform = MockKqFlutterTvWidgetsPlatform();
    KqFlutterTvWidgetsPlatform.instance = fakePlatform;

    expect(await kqFlutterTvWidgetsPlugin.getPlatformVersion(), '42');
  });
}
